package edu.zut.oop_test.test2;

/**
 * 课程实体类
 */
public class Course {

    String number;
    String name;
    String msg;

    //一门课程之下有多个学生
    Student[] students;

    public static void main(String[] args) {
        Course course = new Course();
        course.number = "RB7001060";
        course.name = "Java程序设计";
        course.msg = "Java课程最基础的内容";
        Student student = new Student();
        student.set("2021001","张三",19);
        Student student2 = new Student();
        student2.set("2021002","李四",19);
        Student student3 = new Student();
        student3.set("2021003","王五",19);
        course.students = new Student[]{student,student2,student3};
        //......打印展示数据，自行实现
    }
}



